package com.fsp.controller;

import com.fsp.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/getUser")
    @ResponseBody
    public User getUser(){
        User user = new User();
        user.setName("sandy");
        user.setAge(18);
        user.setBirthday(new Date());
        user.setPassword("123456");
        return user;
    }
}
